// 把一个对象内的属性都变成可选类型
interface IKun {
    name: string,
    age: number,
    slogan?: string
}

// 类型体操
type MyPartial<T> = {
    [P in keyof T]?: T[P]
}

type IKunOptional = Partial<IKun>

type IChaoOptional = MyPartial<IKun>


export { }